-
-
Notifications
You must be signed in to change notification settings - Fork 35
Updated deps to make testsuite run again #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So I updated the CI to only use Node 22 and 24 in order to get this esm/cjs cr💩p somehow running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates development dependencies and converts the project from CommonJS to ES modules to fix the test suite. The main changes include updating Node.js versions, Babel configuration, test runners, and converting module imports/exports throughout the codebase.
- Updated Node.js versions from 16-20 to 22-24 in CI configuration
- Converted all CommonJS
require/module.exports
to ES6import/export
syntax - Updated development dependencies including Mocha, Babel, and other testing tools
Reviewed Changes
Copilot reviewed 28 out of 29 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
package.json | Updated dev dependencies and Node.js versions for ESM compatibility |
test/testHelpers.js | Removed unused Meteor import and test helper, added asyncTimeout utility |
test/src/*.tests.js | Added .js extensions to all import paths for ESM compatibility |
src/**/*.js | Added .js extensions to all import paths and converted to ESM |
lib/*.js | Converted from CommonJS exports to ESM exports |
helpers/reactNativeBindings.js | Refactored from CommonJS to ESM with cleaner variable declarations |
test/hooks/mockServer.js | Converted to ESM and improved async handling |
.github/workflows/node.js.yml | Updated GitHub Actions and Node.js versions |
README.md | Added migration notice for ESM-only transition |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary
This updates dev dependencies to get the testsuite running again.
Edit: had to go the full round for esm+cjs cross compatibility
We should soon publish a full esm-only package, it's really annoying.
Linked issue(s)
#168 #167 (this PR is required to fix them)
Involved parts of the project
tests, dev
Added tests?
update mocha runner
Targeted Meteor release version
next release
Reproduction
clone, install, run tests